export default {
    methods: {
        // 两个经纬度输入框检验
        checkLng(target, str) {
            let val = target[str];
            if (val > 180) val = 180;
            if (val < 0) val = 0;
            target[str] = val.toString();
        },
        checkLat(target, str) {
            let val = target[str];
            if (val > 90) val = 90;
            if (val < 0) val = 0;
            target[str] = val.toString();
        },
    },
}